from django import forms
from django.forms import ModelForm
from models import Domain
from models import Supermaster
from models import Record
from models import Nameserver
from models import Acl
from models import Cryptokey
from models import Domainmetadata
from shared.forms import DisplayModelForm

class DomainForm(ModelForm):
	class Meta:
		model=Domain

class DomainViewForm(DisplayModelForm):
	class Meta:
		model=Domain
		
class SupermasterForm(ModelForm):
	class Meta:
		model=Supermaster
		
class SupermasterViewForm(DisplayModelForm):
	class Meta:
		model=Supermaster

class RecordForm(ModelForm):
	class Meta:
		model=Record

class RecordViewForm(DisplayModelForm):
	class Meta:
		model=Record

class NameserverForm(ModelForm):
	class Meta:
		model=Nameserver

class NameserverViewForm(DisplayModelForm):
	class Meta:
		model=Nameserver

class AclForm(ModelForm):
	class Meta:
		model=Acl

class AclViewForm(DisplayModelForm):
	class Meta:
		model=Acl

class CryptokeyForm(ModelForm):
	class Meta:
		model=Cryptokey

class CryptokeyViewForm(DisplayModelForm):
	class Meta:
		model=Cryptokey

class DomainmetadataForm(ModelForm):
	class Meta:
		model=Domainmetadata

class DomainmetadataViewForm(DisplayModelForm):
	class Meta:
		model=Domainmetadata
